import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../../../utils/utils_logger.dart';
import '../../../../widgets/globel_widget.dart';
import '../../../../widgets/spirit/spirit_view.dart';
import '../detail/detail_view.dart';
import '../group_five/group_five_view.dart';
import '../table_data.dart';
import 'group_three_logic.dart';

class GroupThreePage extends StatelessWidget {
  final logic = Get.put(GroupThreeLogic());
  GroupThreePage({required this.data});
  /// 根据该数据条目生成组件
  final TabData data;

  @override
  Widget build(BuildContext context) {
    TextStyle textStyle = TextStyle(color: Colors.yellow, fontSize: 50);
    return ListView(
      children: ListTile.divideTiles(
        color: Colors.grey,
        context: context,
        tiles: List.generate(3, (index) {
          return Column(
            children: [
              spaceHeight(height: 20),
              SpiritComponent(onTap: () {
                logd('onTap');
                Get.to(DetailPage());
              },onLongPress: () {
                logd('onLongPress');
              },
                lLeftText: 'MS-L1', lRightText: '18/F',
                rLeftText: 'AL', rCenterText: 'PW',
                rLeftColor: Colors.red, rCenterColor: Colors.orange,),
              spaceHeight(height: 20),
            ],
          );
        }),
      ).toList(),
    );

  }


}



